package zmqc.iceyung;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import zmqc.iceyung.service.IStudentService;
@EnableAspectJAutoProxy
@SpringBootApplication
public class IceyungApplication implements CommandLineRunner{

	@Autowired
	private IStudentService studentService;

	@Override
	public void run(String... args) throws Exception {
		System.out.println(studentService.getAllStudents());
	}

	public static void main(String[] args) {
		SpringApplication.run(IceyungApplication.class, args);
	}
}
